package com.cx.mall.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@EnableDiscoveryClient      //开启服务发现
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}) //开启feign客户端
@ComponentScan(basePackages = {"com.cx.mall.demo","com.cx.mall.common"})
public class MallDemoApplication {
    public static void main( String[] args )
    {
        SpringApplication.run(MallDemoApplication.class,args);
    }
}